package cn.ekuma.pos.printer.zonerich;

import com.openbravo.pos.printer.escpos.Codes;

public class CodesZonerichAB58GK extends Codes{
	private static final byte[] INITSEQUENCE = {};
	
	private static final byte[] NEW_LINE = {0x0D, 0x0A}; // Print and carriage return  
	
    public static final byte[] CHAR_SIZE_0 = {0x1B, 0x21, 0x01}; // This sets 7x9 font 
    public static final byte[] CHAR_SIZE_1 = {0x1B, 0x21, 0x11}; // This sets double hight 7x9 font 
    public static final byte[] CHAR_SIZE_2 = {0x1B, 0x21, 0x21}; // This sets 7x9 double width font 
    public static final byte[] CHAR_SIZE_3 = {0x1B, 0x21, 0x31}; // This sets 7x9 double width/hight font
	
    public static final byte[] UNDERLINE_SET = {};
    public static final byte[] UNDERLINE_RESET = {};
    
	public static final byte[] BOLD_SET = {0x1C, 0x0E};
    public static final byte[] BOLD_RESET = {0x1C, 0x14};
    
    private static final byte[] PARTIAL_CUT = {};
    
    private static final byte[] IMAGE_HEADER = {0x1B, 0x2A};
	
	private static final byte[] OPEN_DRAWER = {0x1B, 0x70, 0x00, 0x32, -0x06};

	@Override
	public byte[] getInitSequence() {
		return INITSEQUENCE;
	}

	@Override
	public byte[] getSize0() {
		return CHAR_SIZE_0;
	}

	@Override
	public byte[] getSize1() {
		return CHAR_SIZE_1;
	}

	@Override
	public byte[] getSize2() {
		return CHAR_SIZE_2;
	}

	@Override
	public byte[] getSize3() {
		return CHAR_SIZE_3;
	}

	@Override
	public byte[] getBoldSet() {
		return BOLD_SET;
	}

	@Override
	public byte[] getBoldReset() {
		return BOLD_RESET;
	}

	@Override
	public byte[] getUnderlineSet() {
		return UNDERLINE_SET;
	}

	@Override
	public byte[] getUnderlineReset() {
		return UNDERLINE_RESET;
	}

	@Override
	public byte[] getOpenDrawer() {
		return OPEN_DRAWER;
	}

	@Override
	public byte[] getCutReceipt() {
		
		return PARTIAL_CUT;
	}

	@Override
	public byte[] getNewLine() {
		return NEW_LINE;
	}

	@Override
	public byte[] getImageHeader() {
		return IMAGE_HEADER;
	}

	@Override
	public int getImageWidth() {
		
		return 256;
	}
}
